package cn.com.thinvent.dispatch.service.biz.impl;

import cn.com.thinvent.dispatch.dao.ChatGptMapper;
import cn.com.thinvent.dispatch.entity.ChatGpt;
import cn.com.thinvent.dispatch.service.biz.BaseBiz;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Date;

@Component
public class BaseBizImpl implements BaseBiz {

    @Resource
    private ChatGptMapper chatGptMapper;

    @Override
    public void testMapper() {
        System.out.println(chatGptMapper);
        ChatGpt chatGpt = new ChatGpt();
        chatGpt.setIp("127.0.0.1");
        chatGpt.setContent("测试mapper");
        Date date = new Date();
        chatGpt.setCreateTime(date);
        chatGpt.setUpdateTime(date);
        chatGptMapper.insert(chatGpt);
    }
}
